package com.margo.project.web.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



/**
 * 测试RestTemplate
 * @author fxb208
 *
 */
@RestController
@RequestMapping("/rest")
public class MargoRestTemplateController {
	
	Logger logger=LoggerFactory.getLogger(this.getClass());
	/**
	 * content-type=application/x-www-form-urlencoded
	 * @param name
	 * @param age
	 * @return
	 */
	@RequestMapping("/form")
	public String form() {
		String url="http://localhost:8080/rest/form";
		return url;
	}
	
}
